package com.gxitsky.behavioral.pipeline2;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author gxing
 * @desc TODO
 * @date 2022/3/29
 */
public class HttpPipeContext implements PipeContext {

    public HttpServletRequest request;
    public HttpServletResponse response;

    public void setRequest(HttpServletRequest request) {
        this.request = request;
    }

    public void setResponse(HttpServletResponse response) {
        this.response = response;
    }

    @Override
    public HttpServletRequest getHttpServletRequest() {
        return request;
    }

    @Override
    public HttpServletResponse getHttpServletResponse() {
        return response;
    }
}
